/**
 * Created by 春旺 on 2017/3/22.
 */
//************************************************************************************
//  Year41.java      Java Foundations
//*************************************************************************************
import java.util.Scanner;

public class Year41
{
    public static void main(String[] args)
    {
        //-----------------------------------------------------------------------------
        //  计算输入的年份是否是闰年。
        //------------------------------------------------------------------------------
        int year;

        System.out.println("输入年份： ");

        Scanner scan = new Scanner(System.in);
        year = scan.nextInt();

        if (year <= 1582)

            System.out.println("这是无效年份。");
        else if (year % 100 ==0 && year % 400 != 0)
            System.out.print("这是平年。");
        else if (year % 4 == 0)
                    System.out.println("这是闰年。");
        else
            System.out.println("这是平年。");
    }
}
